package com.hdu.controller;

import com.hdu.service.RedisService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    private final RedisService redisService;

    public TestController(RedisService redisService) {
        this.redisService = redisService;
    }


    @GetMapping("test")
    public String test() {
        return redisService.selectKeysByPattern("*test*").toString();
    }


}
